/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controller;

/**
 *
 * @author Uelinton
 */
public abstract class Validator<T> {
    
    public class Result {

        private final Object errorCode;
        private final String description;

        public Result(Object errorCode, String description) {
            //compiled code
            throw new RuntimeException("Compiled Code");
        }

        public Object getErrorCode() {
            //compiled code
            throw new RuntimeException("Compiled Code");
        }

        public String getDescription() {
            //compiled code
            throw new RuntimeException("Compiled Code");
        }

        public String toString() {
            //compiled code
            throw new RuntimeException("Compiled Code");
        }
    }

    public Validator() {
        //compiled code
        throw new RuntimeException("Compiled Code");
    }

    public abstract Result validate(T value);
    
}
